package com.view;

import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;

/**
 * Created by Administrator on 2016/7/7.
 */
public class MyLinearLayoutManager extends LinearLayoutManager{
    boolean scrollEnable = true;

    public boolean isScrollEnable() {
        return scrollEnable;
    }

    public MyLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
        super(context, orientation, reverseLayout);
    }

    public void setScrollEnable(boolean scrollEnable) {
        this.scrollEnable = scrollEnable;
    }

    @Override
    public boolean canScrollVertically() {
        return super.canScrollVertically()&&scrollEnable;
    }
}
